<?php
require($_SERVER['DOCUMENT_ROOT'].'/admin/pz/mailimap.php');
?>
<div class="tab-content">
    <div class="tab-pane active">

        <form action="plugin/call/smtp.php" method="post" name="edit-form" class="edit-form">
            <div class="form-group">
                <label for="web_site_title">smtp服务器</label>
                <input class="form-control" type="text" id="web_site_title" name="smtp_host" value="<?php echo $setting_mail_array['smtp_host'] ?>" placeholder="请输入smtp服务器">

            </div>

            <div class="form-group">
                <label for="web_site_description">端口号</label>
                <textarea class="form-control" id="web_site_description" rows="2" name="smtp_port" placeholder="请输入端口号"><?php echo $setting_mail_array['smtp_port'] ?></textarea>

            </div>

            <div class="form-group">
                <label for="web_site_copyright">协议</label>
                <textarea class="form-control" id="web_site_copyright" name="smtp_secure" rows="2" placeholder="请输入协议(允许 TLS 或者ssl协议)"><?php echo $setting_mail_array['smtp_secure']; ?></textarea>
                <small class="help-block">允许 TLS 或者ssl协议</small>
            </div>

            <div class="form-group">
                <label class="btn-block" for="web_site_status">邮箱用户</label>
                <div class="example-box">
                    <input class="form-control" type="text" id="web_site_icp" name="smtp_user" value="<? echo $setting_mail_array['smtp_user'] ?>" placeholder="请输入邮箱用户名">
                </div>
                <div class="form-group">
                    <label class="btn-block" for="web_site_status">邮箱授权码</label>
                    <div class="example-box">
                        <input class="form-control" type="text" id="web_site_time" name="smtp_pass" value="<?php
                                                                                                            echo $setting_mail_array['smtp_pass'] ?>" placeholder="请输入邮箱鉴权码">
                    </div>
                    <div class="form-group">
                    <label class="btn-block" for="web_site_status">IMAP服务器</label>
                    <div class="example-box">
                        <input class="form-control" type="text" id="web_site_times" name="imap_host" value="<?php
                                                                                                            echo $mail_imaps['imap_host'] ?>" placeholder="请输入IMAP服务器">
                                    <small class="help-block">仅用于后台登录时邮箱验证！同时请确保已安装并启动IMAP扩展</small>

                    </div>
                    <div class="form-group">
                        <button type="submit" class="btn btn-primary m-r-5">保 存</button>
                    </div>

        </form>

    </div>
</div>